package com.thinkit.bigdata.web.dao.bus;

import com.thinkit.bigdata.core.feature.orm.mybatis.Page;
import com.thinkit.bigdata.web.model.bus.BusModelRule;
import com.thinkit.bigdata.web.model.bus.BusModelRuleExample;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

public interface BusModelRuleMapper {
    int countByExample(BusModelRuleExample example);

    int deleteByExample(BusModelRuleExample example);

    int deleteByPrimaryKey(Long id);

    int insert(BusModelRule record);

    int insertSelective(BusModelRule record);

    List<BusModelRule> selectByExample(BusModelRuleExample example);

    List<BusModelRule> selectByExample(Page<BusModelRule> page, BusModelRuleExample example);

    List<Map> getRuleByTree(Page<Map> page, Map<String, Object> map);

    List<Map> getRuleByTree(Map<String, Object> map);

    BusModelRule selectByPrimaryKey(Long id);

    List<BusModelRule> selectByProCode(Map map);

    List<BusModelRule> selectByProCode(Page<BusModelRule> page, Map map);

    int updateByExampleSelective(@Param("record") BusModelRule record, @Param("example") BusModelRuleExample example);

    int updateByExample(@Param("record") BusModelRule record, @Param("example") BusModelRuleExample example);

    int updateByPrimaryKeySelective(BusModelRule record);

    int updateByPrimaryKey(BusModelRule record);

    int deleteByModelId(Long modelId);

}